#!/bin/bash
# install
echo "**********install requirements started**********"
npm install --registry=https://registry.npm.taobao.org --unsafe-perm=true --allow-root
echo "**********install requirements finished**********"
# build
echo "**********build package started**********"
npm run build-pord
echo "**********build package finished**********"
# deploy
echo "**********deploy package started**********"
cp -r /root/.jenkins/workspace/auth-ht-pc/dist/app-menu/** /k3s-obsfs/nginx/nginx/data/app1.8/auth
echo "**********deploy package finished**********"
